home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2356 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  37 lines

  1. Path: pm71001.scilab.wesleyan.edu!user
  2. From: stlabguest@wesleyan.edu (STLab Public Access Macintosh)
  3. Newsgroups: comp.lang.c
  4. Subject: iHelp!  Dumb question for smart THINK C users.
  5. Date: Sat, 20 Jan 1996 16:01:28 -0500
  6. Organization: Wesleyan University
  7. Message-ID: <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>
  8. NNTP-Posting-Host: pm71001.scilab.wesleyan.edu
  9.  
  10. I'm a total newbie to C programming, but I got a copy of THINK C yesterday
  11. and decided to try to learn.  So I tried a very simple program:
  12.  
  13. #include <STDIO.h>
  14. main()
  15. {
  16.    printf(  "bla" );
  17. }
  18.  
  19. It compiled without any errors, but when I tried to run it, it said that
  20. there was a link error: it didn't know what "prinf" meant.  I'm sure that
  21. it was loading the "STDIO.h" properly, because I changed the program to:
  22.  
  23. #include <dummy.h>
  24. main()
  25. {
  26.    printf(  "bla" );
  27. }
  28.  
  29. and it told me it couldn't find the file "dummy.h"  What gives?  I thought my
  30. STDIO.h file might be the problem, but I tried a different copy in my
  31. school's computer lab and it still didn't work.
  32.  
  33. Thanks in advance,
  34.  
  35. -jacob eisenstein
  36.  jacob@helpdesk.wesleyan.edu
  37.